package com;

import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by likunping on 2018/9/14.
 * description: 价格深度实体
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DepthPrice implements Serializable {

    private BigDecimal price; //价格
    private BigDecimal qty;   //数量
    private Integer lpId; //上游交易所ID


    private TimeStatisticsVo timeStatistics = new TimeStatisticsVo();

    public DepthPrice() {
    }

    public DepthPrice(BigDecimal price, BigDecimal qty, Integer lpId) {
        this.price = price;
        this.qty = qty;
        this.lpId = lpId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public DepthPrice setPrice(BigDecimal price) {
        this.price = price;
        return this;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public DepthPrice setQty(BigDecimal qty) {
        this.qty = qty;
        return this;
    }

    public Integer getLpId() {
        return lpId;
    }

    public DepthPrice setLpId(Integer lpId) {
        this.lpId = lpId;
        return this;
    }

    public TimeStatisticsVo getTimeStatistics() {
        return timeStatistics;
    }
    public DepthPrice setTimeStatistics(TimeStatisticsVo timeStatistics) {
        this.timeStatistics = timeStatistics;
        return this;
    }

}
